package com.kwq.designPattern.construct.proxy;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

/**
 * @author kangwanqiang
 * @date 2021/2/9
 */
@Data
@AllArgsConstructor
public class MyInvocationHandler implements InvocationHandler {
    Object object;
    @Override
    public Object invoke(Object proxy, Method method, Object[] args)
            throws Throwable {
        return method.invoke(object,args);
    }
}
